package Bk.basic;

public class J12_Expression74 {

	public static void main(String[] args) {
		Account acc = new Account();
		acc = new Account( 1122, 20000, 4.5, "2014-08-15 14:34:29" );
		
		System.out.println( acc.toString() );
		
		
	}

}

class Account {
	private double aid;
	private double balance;
	private double interestRate;
	private String dateCreated;
	private double getMonthlyInterestRate;
	
	public Account() {	}
	public Account( int aid, int balance, double interestRate, 
			String dateCreated ) {	
		this.aid = aid;
		this.balance = balance;
		this.interestRate = interestRate;
		this.dateCreated = dateCreated;
	}
	
	public void setAid( int aid ) {
		this.aid = aid;
	}
	public void setBal( int balance ) {
		this.balance = balance;
	}
	public void setInter( double interestRate ) {
		this.interestRate = interestRate;
	}
	public void setDate( String dateCreated ) {
		this.dateCreated = dateCreated;
	}
//	public void setMon( double getMonthlyInterestRate ) {
//		this.getMonthlyInterestRate = getMonthlyInterestRate;
//	}
	
	public double getAid () {
		return aid;
	}
	public double getBal () {
		return balance;
	}
	public double getInter () {
		return interestRate;
	}
	public String getDate () {
		return dateCreated;
	}
	public double getMon () {
		getMonthlyInterestRate = interestRate / 12;
		return getMonthlyInterestRate;
	}
	
	@Override
	public String toString() {
		String result = "";
			result += "계좌번호 " + aid;
			result += "통장잔액 " + balance;
			result += "연간 이자율 " + interestRate;
			result += "통장개설 날짜 " + dateCreated;
			result += "월간 이자율 " + getMon();
		
		return result;
	}
	
	
	
}